package com.su.gulimall.product.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

//二级分类的vo
@NoArgsConstructor
@AllArgsConstructor
@Data
public class Catelog2Vo {
    //一级分类Id
    private String catalogId;
    //三级子分类集合
    private List<Catelog3Vo> catalog3List;
    //二级分类的id
    private String id;
    //二级分类名
    private String name;

    // 三级分类的vo
    @NoArgsConstructor
    @AllArgsConstructor
    @Data
    public static class Catelog3Vo{
        private String catalog2Id;
        private String id;
        private String name;
    }

}
